package com.wl;

import com.wl.bean.DemoProperties;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Hello world!
 *
 */
@AutoConfiguration
@ComponentScan("com.wl")
//相当于指定类记载到IOC容器
@EnableConfigurationProperties(DemoProperties.class)
@ConditionalOnProperty(prefix = "demo",name = "enable")
/*
*   application.yml
*   demo:
*       enable: true
*       nam: test
* */
public class App 
{

}
